package algotradingfx.data;

import atp.commons.util.Tick;

public class ChangesAnalyser {
	public double calculateChange(Tick t1, Tick t2) {
		final double priceDiff = 0.5 * (t2.getAsk() + t2.getBid() - t1.getAsk() - t1
				.getBid());
		final double timeDiff = t2.getTimestamp() - t1.getTimestamp();
		return priceDiff / timeDiff;
	}

	public double calculateChange(double startTime, double endTime) {
		return 0.0;
	}

	public double calculateHistoricalVol(Tick[] t1) {
		return 0.0;
	}

	public double calculateHistoricalVol(double startTime, double endTime) {
		return 0.0;
	}
	/**
	public double calculateImpliedVol(Tick[] t1) {
		return 0.0;
	}

	public double calculateImpliedVol(double startTime, double endTime) {
		return 0.0;
	}
	*/
}
